package edu.sias.chat.service.Impl;

import edu.sias.chat.mapper.UserMapper;
import edu.sias.chat.service.IUserService;
import edu.sias.chat.vo.UserVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserService implements IUserService {

    private final UserMapper userMapper;

    @Autowired
    public UserService(UserMapper userMapper) {
        this.userMapper = userMapper;
    }

    @Override
    public List<UserVO> selectAllByUsernames(List<String> usernames) {
        return userMapper.selectAllByUsernames(usernames);
    }
}
